package com.ase.leetcode;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author gyhstart
 * @create 2021/3/11 - 11:59
 **/
public class test3 {
    public static void main(String[] args) {
        stream();
    }

    public static void stream() {
        List<String> list = Arrays.asList("3", "2", "2", "3", "7", "3", "5");

        System.out.println(list.stream().filter(i -> !i.isEmpty()).collect(Collectors.joining("-")));
    }
}
